//
//  LocationButton.h
//  DianYing5
//
//  Created by 夏晓霖 on 15/7/20.
//  Copyright (c) 2015年 uskr. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface LocationButton : UIButton

//!@brief 保存数据的data
@property (strong,nonatomic) id data;

//!@brief 按钮被点击时执行的BLOCK
@property (copy,nonatomic) void (^action)(LocationButton *button);
//!@brief 按钮被点击时执行的BLOCK的SET方法
-(void)setAction:(void (^)(LocationButton *))action;

//!@brief 通过init方法创建按钮
-(id)initWithFrame:(CGRect)frame withTitle:(NSString *)title withBackgroundColor:(UIColor*)color withAction:(void(^)(LocationButton *button))action;

@end

